"use strict";

Object.defineProperty(exports, "__esModule", {
    value: true
});
var removeArrayItem = exports.removeArrayItem = function removeArrayItem(array, filter, remove) {
    for (var i = 0; i < array.length; i++) {
        if (filter(array[i], i)) {
            remove(array[i], i);
            i--;
        }
    }
};
var removeArrayItemAll = exports.removeArrayItemAll = function removeArrayItemAll(array, remove) {
    return removeArrayItem(array, function () {
        return true;
    }, remove);
};
exports.default = removeArrayItem;